package com.zhxin.threadLab;

/**
 * @ClassName MyThread
 * @Description //TODO
 * @Author singleZhang
 * @Email 405780096@qq.com
 * @Date 2020/11/26 0026 上午 10:11
 **/
public class MyThread extends Thread {

        private  int count = 5;


        @Override
        synchronized public void run(){
            super.run();

            System.out.println("count="+(count --) +",当前线程:"+ Thread.currentThread().getName());


        }
}
